﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EVegetable.WebAdmin
{
    using EVegetable.Domain;
    using EVegetable.Service;

    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            // Using for DB Test only, should be removed later.
            TSys_UserSvc svc = new TSys_UserSvc();


            List<TSys_User> result = svc.GetAllList();
            Response.Write("<script>alert('" + result.Count + "');</script>");

            TSys_User para = new TSys_User() { UserID = 17 };
            TSys_User user = svc.GetByKey(para);
            string alertMsg = "user object is null";
            if (user != null) alertMsg = "AccountID is: " + user.Account;

            Response.Write("<script>alert('" + alertMsg + "');</script>");
        }
    }
}
